package chapter.second.item3;

//简洁，防止多次序列化，防止反射攻击
public enum Singleton3 {
	INSTANCE(1,2);
	
	private final int val1;
	private final int val2;
	
	private Singleton3(int val1,int val2){
		this.val1 = val1;
		this.val2 = val2;
	}
	
	public void someMethod(){
		//...
	}
	
}
